package com.spshiro.pojo;

import lombok.Data;

import java.io.Serializable;

/**
 * @create 2022-03-2022/3/17-9:53
 */
@Data
public class User implements Serializable {
    private Integer id;
    private String name;
    private String password;
    private String role;

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", role='" + role + '\'' +
                '}';
    }

    public User() {
    }

    public User(String name) {
        this.name = name;
    }

    public User(String name, String password) {
        this.name = name;
        this.password = password;
    }

    public User(Integer id, String name, String password, String role) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.role = role;
    }
}
